﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace WPFTestSolution.Pages.Controls {
    
    /**
     * https://www.bilibili.com/video/BV1bV411A7Eq?p=47
     * 047-Calendar日历控件(: Control)
     * https://www.wpfsoft.com/2023/08/31/1616.html
     */
    public partial class _47_Calendar_Page : Page {
        public _47_Calendar_Page() {
            InitializeComponent();
            this.Title = "047-Calendar日历控件(: Control)";
        }

        private void Button_Click(object sender, RoutedEventArgs e) {
            SelectedDatesCollection list = this.Calendar.SelectedDates;
            DateTime? current = this.Calendar.SelectedDate;
            MessageBox.Show($"当前日期数量:{list.Count}, 当前日期：{current}");
        }
    }
}